from sqlalchemy import Column, Integer, Enum, Text, DateTime
from ..database  import Base

class SystemLog(Base):
    __tablename__ = "system_logs"

    id = Column(Integer, primary_key=True, index=True)
    level = Column(Enum('INFO', 'WARNING', 'ERROR'), default='INFO')
    message = Column(Text)
    created_at = Column(DateTime)
